package com.system.permissiondemo.param;

import lombok.Data;
import lombok.NonNull;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class UserParam {


    private Integer id;
    @NotBlank
    @Length(min = 1, max = 20)
    private String username;
    @NotBlank
    @Length(min = 1, max = 13)
    private String telephone;
    @NotBlank
    @Length(min = 5, max = 50)
    private String mail;
    @Length(min = 0, max = 200)
    private String remark;
    @NonNull
    private Integer deptId;
    @NonNull
    @Min(value = 0)
    @Max(value = 2)
    private Integer status;

    private String password;
}
